package com.corgi.test.retry.test;

import com.corgi.test.retry.Retryable;

/**
 * UserServiceImpl
 *
 * @title: UserServiceImpl
 * @description:
 * @author: dengmiao
 * @create: 2020-06-10 10:12
 **/
public class UserServiceImpl implements UserService {

    @Override
    public void add() throws Exception {
        System.out.println("添加用户。。。");
        throw new RuntimeException();
    }

    @Retryable(maxAttempts = 3)
    @Override
    public void query() throws Exception {
        System.out.println("查询用户。。。");
        throw new RuntimeException();
    }
}
